// 数字
var num3:Number = 10;
console.log(num3);

// 字符串
var str:String = '123'
console.log(str)

// 布尔
var b:boolean = true
console.log(b)

// 数组
var arrq:Number[] = [1,2,3,4,5,6]
console.log(arrq[0])
var arr2:Array<Number> = [1,2,3]
console.log(arr2)

var array:Array<String> = ['lili','amy','tom']
console.log(array[0])
var array2:Array<String> = ['你好','小李','我是']
console.log(array2)

// 元组
var as:[String,Number] = ['1',3]
console.log(as[0])
var a2:[String,Number,boolean] = ['1',4,true] 
console.log(a2[2])

// 枚举
enum Color {blue,yellow,red='nihao'}
var c:Color = Color.red     //若是没有赋值那么打印的是下标
console.log(c)   

// never

// any任何值
var any:any = 'sss'
console.log(any)
var any2:any = 2
console.log(any2)

var n:any = 1
n = 'str'
console.log(n)